package org.dromara.vmp.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.vmp.gb28181.bean.Device;

/**
 * 【请填写功能名称】业务对象 wvp_device
 *
 * @author Lion Li
 * @date 2024-05-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Device.class, reverseConvertGenerate = false)
public class DeviceBo extends BaseEntity {


    @NotBlank(message = "不能为空", groups = {EditGroup.class})
    private String id;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String deviceId;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String manufacturer;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String model;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String firmware;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String transport;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String streamMode;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Boolean onLine;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String registerTime;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String keepaliveTime;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String ip;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long port;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long expires;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long subscribeCycleForCatalog;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long subscribeCycleForMobilePosition;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long mobilePositionSubmissionInterval;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long subscribeCycleForAlarm;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String hostAddress;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String charset;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Boolean ssrcCheck;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String geoCoordSys;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String mediaServerId;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String customName;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String sdpIp;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String localIp;


    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String password;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Boolean asMessageChannel;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long keepaliveIntervalTime;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Boolean switchPrimarySubStream;


    @NotNull(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private Boolean broadcastPushAfterAck;


}
